package com.simon.app.october.modules.job.controller;

import com.simon.app.october.common.utils.QueryPage;
import com.simon.app.october.common.utils.Result;
import com.simon.app.october.modules.job.service.ScheduleJobLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/sys/scheduleLog")
public class ScheduleJobLogController {

    @Autowired
    ScheduleJobLogService scheduleJobLogService;

    @GetMapping("/list")
    public Result list(@RequestParam Map<String, Object> params) {
        return Result.ok().put("page", scheduleJobLogService.getListPage(new QueryPage(params)));
    }
}
